<%@ page language="java" contentType="text/html; charset=UTF-8" import="org.springframework.ui.ModelMap" import="java.util.*,com.device.operating.entity.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/color.css">
<script type="text/javascript" src="/xasj/easyui/jquery.min.js"></script>
<script type="text/javascript" src="/xasj/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/xasj/js/org/edituser.js"></script>
</head>
<%
User user=(User)request.getAttribute("user");
List<Department> listdepart=(List<Department>)request.getAttribute("listdepart");
List<Role> listrole=(List<Role>)request.getAttribute("listrole");
List<Dprole> listdprole =(List<Dprole>) request.getAttribute("listdprole");
List<User> listuser=(List<User>)request.getAttribute("listuser");
%>
<body>
<div id="aa" class="easyui-accordion"   data-options="fit:true,animate:false">

<input id="userId" value="<%=user.getUserId()%>"style="display: none"/>
<div title="员工详细信息编辑" data-options="iconCls:'icon-ok',fit:true" style="overflow:auto;padding-left:15px;padding-top:5px">	
		<form id="st1">
		<table style="padding-top:22px;padding-left:10px" width="100%" border="1"
		cellspacing="0" cellpadding="0" bordercolor="#666666" >
		<tr height="40px">
		<td width="10%">所属部门：</td>		
		<td width="20%">
		<slect id="depart"class="easyui-combobox" data-options="required:true" style="width:98%;height:98%">
		<% for(Department dp:listdepart){%>
			<option 
				<%if(user.getDepartmentId()!=null&&dp.getDepartmentId().equals(user.getDepartmentId())){%>
					selected="selected"
				<%}%> value="<%=dp.getDepartmentId()%>">
			<%=dp.getDpname()%></option>
		<%}%>
		</slect>
		</td>
		<td width="10%">职位：</td>
		<td width="20%">
		<slect id="roleId"class="easyui-combobox" data-options="required:true" style="width:98%;height:98%">
		<% for(Dprole dprole:listdprole){%>
			<option 
				<%if(user.getRoleId()!=null&&dprole.getRoleId().equals(user.getRoleId())){%>
					selected="selected"
				<%}%> value="<%=dprole.getRoleId()%>">
			<%=dprole.getRolename()%></option>
		<%}%>
		</slect>
		</td>
		<td width="10%"></td>
		<td width="20%">
		</td>
		</tr>			
		
		<tr height="40px">
		<td>员工名称：</td>
		<td>
		<input id="username" value="<%=user.getUsername()%>" class="easyui-validatebox" data-options="required:true"style="width:98%;height:98%"/>
		</td>
		<td >工号：</td>				
		<td>
		<input id="usercode" class="easyui-validatebox" data-options="required:true" value="<%=user.getUsercode()%>" style="width:98%;height:98%"/>
		</td>
		<td >修改登录密码：</td>				
		<td>
		<input id="password"  style="width:99%;height:98%"/>
		</td>
		</tr>
		
		<tr height="40px">
		<td>EMAIL：</td>
		<td>
		<input id="email" class="easyui-validatebox" data-options="required:true" value="<%=user.getEmail()%>" style="width:98%;height:98%"/>
		</td>
		<td >联系电话：</td>				
		<td>
		<input id="tel" class="easyui-validatebox"data-options="required:true" value="<%=user.getTel()%>"style="width:98%;height:98%"/>
		</td>
		<td >固定电话：</td>				
		<td>
		<input id="loctel" class="easyui-validatebox"data-options="required:true" value="<%=user.getLoctel()%>"style="width:98%;height:98%"/>
		</td>
		</tr>
		<tr height="40px" >
		<td>出生日期：</td>
		<td>
		<input id="birthday" value="<%=user.getBirthday()%>" style="width:98%;height:98%"/>
		</td>
		<td>备注：</td>
		<td colspan="4"><input class="easyui-textbox" style="width:98%;height:98%" data-options="multiline:true"/></td>
		</tr>
		<tr height="28px">
		<td></td>
		<td>
		<a id="comedituser" class="easyui-linkbutton c8" data-options="toggle:true,plain:true,group:'g3'"style="width:99%;height:30px">完成编辑</a>
		</td>
		</tr>
		</table>
		</form>
		</div>
		
		
		
		</div>

</body>
</html>